const TOKENKEY = 'token_key'

function setToken (token: string): void {
  localStorage.setItem(TOKENKEY, token)
}

function getToken (): string | null {
  return localStorage.getItem(TOKENKEY)
}

function clearToken (): void {
  localStorage.removeItem(TOKENKEY)
}

export {
  setToken,
  getToken,
  clearToken
}